package com.qf.dao;

import com.qf.pojo.po.CSeatDetail;
import com.qf.pojo.req.Ctrain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CSeatDetailMapper {
    List<Ctrain> getcTrain(@Param("dispatureId") Integer dispatureId, @Param("distinationId") Integer distinationId);

    List<CSeatDetail> getcTrainMsg(@Param("ctrainId") String ctrainId);

    List<CSeatDetail> getdTrainMsg(@Param("dtrainId") String dtrainId);

    CSeatDetail findMsgBySeatId(@Param("seatId") Integer seatId);

    int updateTrickNum(@Param("trickNum") Integer trickNum, @Param("seatId") Integer seatId);

    int updateTrickNumDelect(@Param("trainId") Integer trainId);
}
